package com.yanqu.road.entity.monopolymarket.office.log;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

/**
 * @Description 榷署位置变更记录
 * @Author cwq
 * @Data 2021/4/15 18:49
 */
@FieldTypeAnnotation(tableName = "t_c_monopolymarket_office_rob_log_data")
public class MonopolyMarketOfficeRobLogData extends DataObject {
    @FieldTypeAnnotation(select = true ,desc = "分组id")
    private long groupId;
    @FieldTypeAnnotation(desc = "位置id")
    private int posIndex;
    @FieldTypeAnnotation(desc = "位置等级")
    private int level;
    @FieldTypeAnnotation(desc = "编号")
    private int no;
    @FieldTypeAnnotation(desc = "入座时间")
    private int startTime;
    @FieldTypeAnnotation(select = true ,desc = "位置上玩家")
    private long userId;
    @FieldTypeAnnotation(desc = "位置上玩家的称号等级")
    private int decorationClass;
    @FieldTypeAnnotation(desc = "位置上玩家的身份")
    private int title;
    @FieldTypeAnnotation(desc = "位置上玩家的声望")
    private long prestige;
    @FieldTypeAnnotation(desc = "记录类型，0入座1抢夺2撤回")
    private int type;

    @FieldTypeAnnotation(desc = "是否抢夺成功")
    private boolean isWin;

    @FieldTypeAnnotation(desc = "抢夺者id")
    private long robId;

    @FieldTypeAnnotation(desc = "抢夺玩家的称号")
    private int robDecorationClass;
    @FieldTypeAnnotation(desc = "抢夺玩家的身份")
    private int robTitle;
    @FieldTypeAnnotation(desc = "抢夺玩家的声望")
    private long robPrestige;

    @FieldTypeAnnotation(desc = "时间")
    private int logTime;

    public long getGroupId() {
        return groupId;
    }
    public void setGroupId(long groupId) {
        if (this.groupId != groupId) {
            this.groupId = groupId;
            setOp(DataStatus.Update);
        }
    }

    public int getPosIndex() {
        return posIndex;
    }
    public void setPosIndex(int posIndex) {
        if (this.posIndex != posIndex) {
            this.posIndex = posIndex;
            setOp(DataStatus.Update);
        }
    }

    public int getLevel() {
        return level;
    }
    public void setLevel(int level) {
        if (this.level != level) {
            this.level = level;
            setOp(DataStatus.Update);
        }
    }

    public int getNo() {
        return no;
    }
    public void setNo(int no) {
        if (this.no != no) {
            this.no = no;
            setOp(DataStatus.Update);
        }
    }

    public int getStartTime() {
        return startTime;
    }
    public void setStartTime(int startTime) {
        if (this.startTime != startTime) {
            this.startTime = startTime;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getDecorationClass() {
        return decorationClass;
    }
    public void setDecorationClass(int decorationClass) {
        if (this.decorationClass != decorationClass) {
            this.decorationClass = decorationClass;
            setOp(DataStatus.Update);
        }
    }

    public int getTitle() {
        return title;
    }
    public void setTitle(int title) {
        if (this.title != title) {
            this.title = title;
            setOp(DataStatus.Update);
        }
    }

    public long getPrestige() {
        return prestige;
    }
    public void setPrestige(long prestige) {
        if (this.prestige != prestige) {
            this.prestige = prestige;
            setOp(DataStatus.Update);
        }
    }

    public int getType() {
        return type;
    }
    public void setType(int type) {
        if (this.type != type) {
            this.type = type;
            setOp(DataStatus.Update);
        }
    }

    public boolean getIsWin() {
        return isWin;
    }
    public void setIsWin(boolean isWin) {
        if (this.isWin != isWin) {
            this.isWin = isWin;
            setOp(DataStatus.Update);
        }
    }

    public long getRobId() {
        return robId;
    }
    public void setRobId(long robId) {
        if (this.robId != robId) {
            this.robId = robId;
            setOp(DataStatus.Update);
        }
    }

    public int getRobDecorationClass() {
        return robDecorationClass;
    }
    public void setRobDecorationClass(int robDecorationClass) {
        if (this.robDecorationClass != robDecorationClass) {
            this.robDecorationClass = robDecorationClass;
            setOp(DataStatus.Update);
        }
    }

    public int getRobTitle() {
        return robTitle;
    }
    public void setRobTitle(int robTitle) {
        if (this.robTitle != robTitle) {
            this.robTitle = robTitle;
            setOp(DataStatus.Update);
        }
    }

    public long getRobPrestige() {
        return robPrestige;
    }
    public void setRobPrestige(long robPrestige) {
        if (this.robPrestige != robPrestige) {
            this.robPrestige = robPrestige;
            setOp(DataStatus.Update);
        }
    }

    public int getLogTime() {
        return logTime;
    }
    public void setLogTime(int logTime) {
        if (this.logTime != logTime) {
            this.logTime = logTime;
            setOp(DataStatus.Update);
        }
    }
}
